package today.rocky.boot.mongo.service;

import today.rocky.boot.mongo.pojo.Book;

import java.util.List;

/**
 * @version 1.0
 * @vlog:
 * @description:
 * @author: Rocky
 * @createDate: 2020/6/9 20:50
 */
public interface BookService {
	void addBook(Book book);
	void updateBook(Book book);
	void deleteBook(Book book);
	List<Book> findByLike(String search);
	List<Book> findAll();

	Book findById(String id);
	Book findByName(String name);
	void deleteBookById(String id);
}
